<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('/users', 'Api\V1\UserController',['only'=>['index']]); // 前端用户
    $router->resource('/queue_setups', 'Api\V1\QueueSetupController');   // 排队等待设置
    $router->resource('/deposit_setups', 'Api\V1\DepositSetupController');// 入金设置
    $router->resource('/time_setups', 'Api\V1\TimeSetupController');  // 开始时间设置
    $router->resource('/round_static_profits', 'Api\V1\RoundStaticProfitController'); // 静态收益设置
    $router->resource('/autos', 'Api\V1\AutoController');   // 自动匹配设置
    $router->resource('/sun_line_rates', 'Api\V1\SunLineRateController');   // 太阳线比率设置
    $router->resource('/team_profit_rates', 'Api\V1\TeamProfitRateController');   // 多少进商城，多少进分享
    $router->resource('/global_bonus_pool_rates', 'Api\V1\GlobalBonusPoolRateController');   //   全球分红

});
